#include"object.h"
#include<stdio.h>
#include<allegro.h>


int main()
{

BITMAP *back;
BITMAP *buffer;
BITMAP *ima;
int imc,tmps,maxtmps;
Bal b;
Bal m;

allegro_init();
if (install_keyboard() == -1)
{
allegro_message("Error! %s", allegro_error);
return -1;
}

back = load_bitmap("/home/niss/etude/final/objet/bal/bac.bmp",NULL);

set_color_depth(16);
if (set_gfx_mode(GFX_AUTODETECT_WINDOWED, back->w,back->h, 0, 0) != 0) {
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0); /* here’s the command for text mode */
allegro_message("Unable to initialize video mode!\n%s\n", allegro_error);
return 1;
}

deplacement_balancoire(&b);
deplacement_moulin(&m);

return(0);
}
END_OF_MAIN();
